<?php

class Application_Form_CampaignAdd extends Zend_Form
{

	public function init()
	{
		$salesrepDb = new Application_Model_DbTable_Salesrep();
		
		$this->setMethod('post');
		$this->setAction('add');

		$salesrepname = new Zend_Form_Element_Select('salesRepName');
		$salesrepname->setLabel('SalesRep');
		$salesrepname->addMultiOptions($salesrepDb->getSalesRepsForm());
		$salesrepname->setRequired(true);

		$name = new Zend_Form_Element_Select('customerNumber');
		$name->setLabel('Kunde');
		$name->setRequired(true);
		
		$campaignType = new Zend_Form_Element_Select('campaignType');
		$campaignType->setLabel('Campaign Type');
		$campaignType->addMultiOptions(array('SOA' => 'Pulsing', 'EITF' => 'Werbung'));
		$campaignType->setRequired(true);
		
		$campaignDesc = new Zend_Form_Element_Select('campaignDesc');
		$campaignDesc->setLabel('Campaign');
		$campaignDesc->addMultiOptions(array('Skylanders Single Toys 3 for 2', 'MBU 20% Aktion', 'regular SOA'));
		$campaignDesc->setRequired(true);


		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Add ');

		$this->addElements(array($salesrepname, $name, $campaignType, $campaignDesc, $submit));
	}


}

